package itdep.common.aspect;

import javax.faces.component.UIComponent;

/**
 * @author $Author: ikhalopik $ (latest modification by $Author: ikhalopik $:)
 * @version $Revision: 4 $   $Date: 2010-06-10 13:13:16 +0000 (Thu, 10 Jun 2010) $
 */
public interface JSFComponentSecurityChecker {

	/**
	 * Checks to see if a component can be executed based on the implementations rules
	 *
	 * @param component component
	 * @return allowed.
	 */
	boolean isAllowed(UIComponent component);

	/**
	 * Check to see if the component is secured.
	 *
	 * @param component component
	 * @return secured.
	 */
	boolean isSecured(UIComponent component);
}
